﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<DHAA.Areas.Administrator.Models.CustomerModels>>" %>

    <table class="list">
        <tr>
            <th class="style1">
                ID
            </th>
            <th class="style1">
                Username
            </th>
            <th class="style1">
                Customer's Name
            </th>
            <th class="style1">Action</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td class="style1">
                <%= Html.Encode(item.CustomerID) %>
            </td>
            <td>
                <%= Html.Encode(item.UserName) %>
            </td>
            <td>
                <%= Html.Encode(item.CustomerName) %>
            </td>

              <td>
                <%= Html.ActionLink("Edit", "Edit", new { id=item.CustomerID }, new {@class= "ModalAction"}) %> |
                <%= Html.ActionLink("Delete", "Delete", new { id = item.CustomerID}, new { @class = "ModalAction" })%>
            </td>
        </tr>
    
    <% } %>

    </table>
    <div class="cleared-top-5"></div>
    <div>
           <%= Html.ActionLink("Create New", "Create",new {},new {@class = "ModalAction button"}) %>
    </div>
    <div class="cleared"></div>

